package com.neuedu.spring.live;

public class MyUser {


    public MyUser() {
        System.out.println("实例化 Bean MyUser");
    }

    private String name;
    private Integer age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        System.out.println("依赖注入属性：name");
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
        System.out.println("依赖注入属性：age");
    }


    public void init(){
        System.out.println("init-method");
    }
    public void destory(){
        System.out.println("destory-method");
    }

}
